var e = require;
var t = module;
var n = exports;
Object.defineProperty(n, "__esModule", {
    value: !0
});
var o = cc._decorator,
i = o.ccclass,
a = o.property,
r = function(e) {
    __extends(t, e);
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        t.cavas = null;
        t.isLandscape = !0;
        t.isFitWidth = !0;
        return t
    }
    t.prototype.onLoad = function() {
        console.log("SDK.Util.Helper.getScreenAspectRatio", SDK.Util.Helper.getScreenAspectRatio);
        if (this.isLandscape) {
            if (SDK.Util.Helper.getScreenAspectRatio > .5625) if (this.isFitWidth) {
                this.cavas.fitWidth = !0;
                this.cavas.fitHeight = !1
            } else {
                this.cavas.fitWidth = !1;
                this.cavas.fitHeight = !0
            }
        } else if (SDK.Util.Helper.getScreenAspectRatio < 1.7778) if (this.isFitWidth) {
            this.cavas.fitWidth = !0;
            this.cavas.fitHeight = !1
        } else {
            this.cavas.fitWidth = !1;
            this.cavas.fitHeight = !0
        }
    };
    __decorate([a(cc.Canvas)], t.prototype, "cavas", void 0);
    __decorate([a(cc.Boolean)], t.prototype, "isLandscape", void 0);
    __decorate([a(cc.Boolean)], t.prototype, "isFitWidth", void 0);
    return __decorate([i], t)
} (cc.Component);
n.default = r